﻿
namespace DepSoft.Mobile.WP7.FollwIt.Model
{
    /// <summary>
    /// JSon example:
    ///     "rating":"3",
    ///     "quick_thoughts":"",
    ///     "review":"",
    ///     "in_collection":true,
    ///     "watched":true,
    ///     "want_it":false,
    ///     "not_interested":false
    /// </summary>
    public class MovieUserStats
    {
        #region Private members
        private int _rating;
        private string _quick_thoughts;
        private string _review;
        #endregion

        #region Public properties
        public int? Rating
        {
            get
            {
                 return _rating;
            }
            set
            {
                 _rating = value.GetValueOrDefault();
            }
        }

        public string Quick_thoughts
        {
            get
            {
                if (string.IsNullOrEmpty(_quick_thoughts))
                    return string.Empty;
                else
                    return _quick_thoughts;
            }
            set
            {
                _quick_thoughts = value;
            }
        }

        public string Review
        {
            get
            {
                if (string.IsNullOrEmpty(_review))
                    return string.Empty;
                else
                    return _review;
            }
            set
            {
                _review = value;
            }
        }

        public bool In_collection { get; set; }
        public bool Watched { get; set; }
        public bool Want_it { get; set; }
        public bool Not_interested { get; set; }
        #endregion
    }
}
